package com.atguigu.day19.threadmethod.c1;

public class DogThread extends Thread{

    DogThread(){
        super();//Thread()
    }
    DogThread(String name) {
        super(name);
    }
    @Override
    public void run() {
        for (int i = 1; i <=20 ; i++) {
            System.out.println(this.getName()+" 跑了第["+i+"]次");

        }
    }
}
